import {request} from "@/utils/request.js";
// 获取所以用户信息
export const getUserAll = (data)=>request('/users/getAllUser','GET',data);
// 根据username获取用户
export const getUser = (data)=>request('/users/findUser','GET',data);
// 登录接口
export const login = (data)=>request('/login','POST',data);
// 注册接口
export const register = (data)=>request('/login/register','POST',data);


